package com.gateway.video.rtsp.stream.pull;

import lombok.Data;
import lombok.experimental.Accessors;
import org.springframework.boot.context.properties.ConfigurationProperties;

import java.util.Map;

@Data
@Accessors(chain = true)
@ConfigurationProperties(prefix = "gateway.stream")
public class PullVideoConfig {
    private Source source;

    @Data
    @Accessors(chain = true)
    public static class Source {
        private static final boolean DEFAULT_ENABLED = Boolean.TRUE;

        private String url;

        private Type type;

        private Map<String, String> options;

        private Map<String, String> videoOptions;

        private int imageWidth;

        private int imageHeight;

        private int videoBitrate;

        private boolean enabled = DEFAULT_ENABLED;
    }

    public enum Type{
        RTSP
    }
}
